package com.xinzhi.controller;

import com.xinzhi.service.ISendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/send")
public class SendController {
    @Resource
    private ISendService sendService;
    @RequestMapping("/sendMsg")
    public String sendMsg(String msg){
        sendService.send(msg);
        return "success";
    }
}
